package xju_5_6.springboot_5_6.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import xju_5_6.springboot_5_6.entity.User1;
import xju_5_6.springboot_5_6.mapper.User1Mapper;
import xju_5_6.springboot_5_6.service.User1Service;

@Service
public class User1ServiceImpl implements User1Service {
    @Autowired
    private User1Mapper userMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void insert(User1 user) {
        userMapper.insert(user);
//        int a = 10/0;
    }
}
